package cn.lingyan.service.impl;

import java.util.List;

import cn.lingyan.dao.CommonDAO;
import cn.lingyan.service.CustomerService;

public class CustomerServiceImpl implements CustomerService {
	//DAO
	private CommonDAO commonDAO = null;
	//Setter方法，用于注入
	public void setCommonDAO(CommonDAO dao){
		this.commonDAO = dao;
	}
	// 业务方法
	public List getAll() {
		List ret = this.commonDAO.search("from CusCustomer");
		return ret;
	}

}
